package com.chongchong.common.enums;


/**
 * @Author:tlp
 * @Date:2022-08-11 10:04
 * @Desc:
 */
public enum NoTypeEnum {


	/**
	 *
	 */
	EMAIL_TEMPLATE(0, "Email", "邮件模板"),
	FILE(10, "", "文件编号"),
	USER(11,"account","系统新建账号"),
	;

	NoTypeEnum(Integer noType, String noPrefix, String desc) {
		this.noType = noType;
		this.noPrefix = noPrefix;
		this.desc = desc;
	}

	private final Integer noType;

	private final String noPrefix;

	private final String desc;


	public static NoTypeEnum getEnum(Integer noType) {
		NoTypeEnum[] ecs = NoTypeEnum.values();
		for (NoTypeEnum ec : ecs) {
			if (ec.getNoType().equals(noType)) {
				return ec;
			}
		}
		return null;
	}


	public Integer getNoType() {
		return noType;
	}


	public String getNoPrefix() {
		return noPrefix;
	}


	public String getDesc() {
		return desc;
	}


}
